<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    


    <script>
        // 定义变量
        var num1 = 15
        var num2 = 50

        // 循环挑水
        for(var i = 1; i<1000;i++){

            // 满了的条件
            if(num2 - 5*i <= 15){
                console.log(i);
                // 满足条件跳出 结束循环
                break
            }
            
        }
    </script>
</body>
</html>